package com.leo.erp.dto;

import java.util.List;
import java.util.Map;

import com.leo.erp.entity.Supplier;
import com.leo.erp.enums.SupplierStateEnum;

public class SupplierExecution {
	//结果状态
	private int state;
	//状态标识
	private String stateInfo;
	//日志数量
	private int count;
	//总页数
	private long pages;
	//总记录数
	private long total;
	//操作(增删改的时候使用)
	private Supplier supplier;
	//列表(查询列表的时候使用)
	private List<Supplier> supplierList;
	
	
	//分页列表
	private List<Map<String, Object>> supplierPageList;
				
	//构造函数
	public SupplierExecution() {
					
	}
				
	//操作失败的时候使用的构造器
	public SupplierExecution(SupplierStateEnum stateEnum) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
	}
				
	//操作成功的时候使用的构造器
	public SupplierExecution(SupplierStateEnum stateEnum, Supplier supplier) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.supplier = supplier;
	}
				
	//操作成功的时候使用的构造器
	public SupplierExecution(SupplierStateEnum stateEnum, List<Supplier> supplierList) {
		this.state = stateEnum.getState();
		this.stateInfo = stateEnum.getStateInfo();
		this.supplierList = supplierList;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getStateInfo() {
		return stateInfo;
	}

	public void setStateInfo(String stateInfo) {
		this.stateInfo = stateInfo;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public long getPages() {
		return pages;
	}

	public void setPages(long pages) {
		this.pages = pages;
	}

	public long getTotal() {
		return total;
	}

	public void setTotal(long total) {
		this.total = total;
	}

	public Supplier getSupplier() {
		return supplier;
	}

	public void setSupplier(Supplier supplier) {
		this.supplier = supplier;
	}

	public List<Supplier> getSupplierList() {
		return supplierList;
	}

	public void setSupplierList(List<Supplier> supplierList) {
		this.supplierList = supplierList;
	}

	public List<Map<String, Object>> getSupplierPageList() {
		return supplierPageList;
	}

	public void setSupplierPageList(List<Map<String, Object>> supplierPageList) {
		this.supplierPageList = supplierPageList;
	}
	
	
}
